package com.wems.dev_ops_manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wems.common.annotation.Excel;
import com.wems.common.core.domain.BaseEntity;

/**
 * 故障记录对象 tb_fault_record
 * 
 * @author MPC
 * @date 2025-04-05
 */
public class FaultRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障ID */
    private Long faultId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long equipmentId;

    /** 故障时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date faultTime;

    /** 故障类型 */
    @Excel(name = "故障类型")
    private String faultType;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 严重程度 */
    @Excel(name = "严重程度")
    private String severity;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private String status;

    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setFaultTime(Date faultTime) 
    {
        this.faultTime = faultTime;
    }

    public Date getFaultTime() 
    {
        return faultTime;
    }

    public void setFaultType(String faultType) 
    {
        this.faultType = faultType;
    }

    public String getFaultType() 
    {
        return faultType;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setSeverity(String severity) 
    {
        this.severity = severity;
    }

    public String getSeverity() 
    {
        return severity;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultId", getFaultId())
            .append("equipmentId", getEquipmentId())
            .append("faultTime", getFaultTime())
            .append("faultType", getFaultType())
            .append("description", getDescription())
            .append("severity", getSeverity())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
